package com.ccsu.mymarket.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.Year;
import java.util.Date;
import java.util.List;

@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("books")
public class Book {
    private Integer id;
    private String bookName;
    private String coverImg;
    private String author;
    private String title;
    private String isbn;
    private String press;
    private Integer impression;
    private String publishTime;
    private String synopsis;
    private Integer shop;
    private String initTime;
    private Double price;
    private Integer salesVolume;
    private Integer stock;
    private Integer classification;

    @TableField(exist = false)
    private String shopName;
    @TableField(exist = false)
    private String catagName;
    @TableField(exist = false)
    private List<Book> children;

}
